package org.stormphoenix.bbsfamily.entity.dto

import org.hibernate.validator.constraints.Length
import javax.validation.constraints.Email
import javax.validation.constraints.NotBlank

data class UserDTO(
    @field:NotBlank(message = "用户名不能为空")
    @field:Length(min = 1, max = 15)
    var username: String = "",

    @field:NotBlank(message = "密码不能为空")
    @field:Length(min = 5)
    var password: String = "",

    @field:Length(min = 0, max = 15)
    var nickname: String = "",

    @field:Email
    var email: String = ""
)